package com.leemon.mall.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author limenglong
 * @create 2019-09-23 15:19
 * @desc
 **/
@Data
@ApiModel("更新密码参数")
public class UpdatePassowrdDto {

    @NotBlank(message = "旧密码不能为空")
    @Size(max = 50)
    @ApiModelProperty(value = "旧密码", required = true)
    private String password;

    @NotBlank(message = "新密码不能为空")
    @Size(max = 50)
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;

}
